home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000104_news@newsmaster….columbia.edu _Thu Jul 24 15:50:07 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
4KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA06786
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 24 Jul 1997 15:50:07 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA25756
for kermit.misc@watsun; Thu, 24 Jul 1997 15:50:07 -0400 (EDT)
Path: news.columbia.edu!news.new-york.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!europa.clark.net!206.229.87.25!news-peer.sprintlink.net!news-pull.sprintlink.net!news-in-east.sprintlink.net!news.sprintlink.net!Sprint!207.103.140.20!news.voicenet.com!omni2!cmosley
From: cmosley@voicenet.com (Christopher Mosley)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: I wonder why
Date: 24 Jul 1997 11:55:27 GMT
Organization: VoiceNet - Internet Access - (215)674-9290
Lines: 56
Message-ID: <5r7frf$klc$1@news2.voicenet.com>
References: <5r524l$2l$1@news2.voicenet.com> <5r5neg$sa1$1@apakabar.cc.columbia.edu>
NNTP-Posting-Host: omni2.voicenet.com
X-Newsreader: TIN [version 1.2 PL2]
Xref: news.columbia.edu comp.protocols.kermit.misc:7382
Frank da Cruz (fdc@watsun.cc.columbia.edu) wrote:
: In article <5r524l$2l$1@news2.voicenet.com>,
: Christopher Mosley <cmosley@voicenet.com> wrote:
: : In sun 4 ckermit
: :
: Which version?
C-Kermit 6.0.192, 6 Sep 96, for SunOS 4.1
: : If I run a sh script from a command shell with the command
: : #1.<kermit -C "send file"> or #2.<kermit -s file> everything is fine
: : however if I use these commands in a script that is running from
: : another process they fail.
: :
: I'm not sure what you mean by "running from another process".
*I accomplished* what I wanted by using the command
"echo send $file | kermit" in the sh script. What I am doing is piping
the contents of a post in the newsreading program "tin" through a filter
that turns the contents of that post into a file and then runs a sh script
that downloads that file to my PC using kermit protocol, after this
is done control is again returned to the "tin process".
Since "kermit -C "send $file"" leaves you in interactive mode I believed
that "kermit -C "send $file"" and "echo send $file | kermit" were
basically functionally the same. First I tried to use "kermit -C "send file""
in the script file to accomplish the above, after hours of trying to do
this and failing I stumbled on the use of "echo send $file | kermit" - this
worked ! When "kermit -C "send $file"" was used the automatic kermit
download feature failed when I manually gave the receive command at
the mskermit prompt the download screen came up completely inactive.
Incidentally kermit -C "command"" worked in the above context for
other commands that did not require a response e.g ls,pwd,echo etc.
Also when "kermit -C "send $file"" is used in a script that is started
from the unix command shell (a unix prompt) it unfailingly works.
There is no problem because "echo send $file | kermit"
works. I only posted because at the time I was surprised and
frustrated and thought I had inkling of why "kermit -C "send $file""
wasn't working. Now I realize I don't have the remotest idea why
it isn't working.
Doing this I discovered that I can use kermit protocol to download
from standard input, Unfortunately this can only be done
using kermit -s - , and this didn't work either.
If this is still incomprehensible feel free not to respond.
Thanks
cmosley